package com.ustc.hewei.rpc.client.loadbalance;

import com.ustc.hewei.rpc.common.protocol.Service;

import java.util.List;

/**
* @description: 负载均衡的接口类
* @author hewei
* @date 2022/8/19 10:00
* @version 1.0
*/

public interface LoadBalanceChoose {
    Service chooseService(String serviceName, List<Service> services);

    Service nextService(List<Service> services, String serviceName, int offset);
}
